package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.adapter.FriendAdapter;
import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.base.IBasePresenter;
import com.kelvin.paopao.module.chat.friend.FriendActivity;
import com.kelvin.paopao.module.chat.friend.FriendPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2017/5/10.
 */

@Module
public class FriendModule {
    private FriendActivity mVIew;

    public FriendModule(FriendActivity view) {
        this.mVIew = view;
    }

    @PerActivity
    @Provides
    public IBasePresenter providePresenter() {
        return new FriendPresenter(mVIew);
    }

    @PerActivity
    @Provides
    public FriendAdapter providAdapter() {
        return new FriendAdapter(mVIew);
    }
}
